package com.woniu108.product.client;

import com.woniu108.carService.commos.dto.AddressInfoDto;
import com.woniu108.carService.commos.model.Result;
import com.woniu108.order.model.form.AddOrderScoreForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author yanxi
 */
@FeignClient(name = "order-server",path = "/order")
public interface OrderClient {

    /**
     * 新增积分订单
     * @param form
     * @return result 是否正常访问接口结果
     */
    @PostMapping("/addOrderScore")
    public Result addOrderScore(@RequestBody AddOrderScoreForm form);


}
